<?php $prodajaHelper = $this->getHelper('seller'); ?>
<h2>Naročila</h2>
<div id="view-content">
<?php $narocila = $prodajaHelper->getNarocila(null); ?>
    <table class="table">
		<tr><th>Id Naročila</th><th>Emšo stranke</th><th>Šifra košarice</th><th>Status naročila</th><th>Akcije</th></tr>
	<?php foreach ($narocila as $narocilo): ?>
		<?php /* @var $narocilo Application_Model_Narocilo */ ?>
        <tr><td><?php echo $narocilo->getIdNarocilo() ?></td>
			<td><?php echo $narocilo->getStranka_emso() ?></td>
			<td><?php echo $narocilo->getKosarica_sifra_kosarice() ?></td>
			<td><?php echo $narocilo->oznakaStatusa($narocilo->getStatus()); ?></td>
			<td><a href="<?php echo $narocilo->getUpdateUrl($this->baseUrl()) ?>">Posodobi status</a> |
				<a href="<?php echo $narocilo->getViewUrl($this->baseUrl()) ?>">Ogled narocila</a>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
</div>